using System;
using System.Drawing;

using MonoTouch.Foundation;
using MonoTouch.UIKit;

namespace Socialite
{
	/// <summary>
	/// Represents a cell that contains details about a place nightclub/bar..).
	/// </summary>
	public partial class PlaceDetailsCell : UITableViewCell
	{
		public PlaceDetailsCell() : base()
		{
		}
		
		public PlaceDetailsCell(IntPtr handle) : base(handle)
		{
		}
		
		/// <summary>
		/// Binds the data to cell.
		/// </summary>
		/// <param name='place'>
		/// Place.
		/// </param>
		public void BindDataToCell (Place place)
		{
			NameLabel.Text = place.Name;
			LocationLabel.Text = place.Location.ToString ();
			LocationTypeLabel.Text = place.LocationType.ToString ();
			HoursLabel.Text = "Hours: " + place.Hours;
			CapacityLabel.Text = "Capacity: " + place.Capacity.ToString();
			CoverPriceLabel.Text = "$" + place.CoverPrice.ToString ();
			
			MainImage.Image = new UIImage (place.PhotoUrl);
		}
	}
}

